﻿using System;
using WEATHER.Components;
using System.Web;

namespace WEATHER.Modules.ONLINE.Pages
{
    public partial class DangerousWeather : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request.QueryString != null)
            {
                DangerousWeatherType weatherType = (DangerousWeatherType)Enum.Parse(typeof(DangerousWeatherType), Request.QueryString["DangerousWeatherType"]);
                Guid mid = new Guid(Request.QueryString["mid"]);
                //ContentPane.InnerHtml = HttpUtility.HtmlDecode(Components.DangerousWeather.GetWeatherOffline(mid, weatherType));
                ContentPane.InnerHtml = HttpUtility.HtmlDecode(Components.DangerousWeather.GetWeatherOnline(mid, weatherType));
            }
        }
    }
}
